<template>
	<div class="navbar">
		<van-nav-bar
			:title="title"
			left-arrow
			@click-left="$router.back()"
			@click-right="$router.push({ path: '/' })"
		>
			<template #right>
				<van-icon name="wap-home-o" color="#f00" size="6vw" />
			</template>
		</van-nav-bar>
	</div>
</template>

<script>
export default {
	props: {
		title: String,
		default: '导航栏'
	}
};
</script>

<style></style>
